package com.szjlc.torna.entity;

import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 商品类别表(t_goods_type)实体类
 * @author makejava
 * @since 2022-11-20 09:39:13
 */

@SuppressWarnings("all")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class GoodsType implements Serializable {

    private static final long serialVersionUID = 842244268364336023L;

    /** 商品类别id，主键 */
    private Integer goodsTypeId;

    /** 商品类别名称 */
    private String goodsTypeName;

    /** 父商品类别id */
    private Integer pId;

    /** 类别状态，0为叶子节点 */
    private Integer goodsTypeState;


    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }

}
